Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add test for RoomNotificationState #7820

Merged
merged 1 commit into from
Feb 17, 2022
Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Feb 16, 2022

Regression test for element-hq/element-web#20859


This change is marked as an internal change (Task), so will not be included in the changelog.

Preview: https://pr7820--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

@dbkr dbkr added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Feb 16, 2022
@dbkr dbkr requested a review from a team as a code owner February 16, 2022 17:36
Comment on lines +27 to +28
stubClient();
const client = MatrixClientPeg.get();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably come up with a code style for tests - these should be in a beforeEach (or beforeAll depending on your scope), but we don't really have a consistent approach within our existing tests.

Will bring it up at another venue.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it seemed a bit presumptuous to assume that all the tests would want something when it was the only test in the file so far... probably exactly why we should have consistent best practices.

@dbkr dbkr merged commit 01b00bf into develop Feb 17, 2022
@dbkr dbkr deleted the dbkr/room_notif_state_test branch February 17, 2022 09:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants